#ifndef __H_LOG_H__
#define __H_LOG_H__

#include "linux_def.h"
#include "core.h"

typedef char*(*log_handler_pt)(log_t *log, char *buf, size_t len);

struct log_s{
	int	level;
	int	fd;
	char	*file;
	int	connection;
	log_handler_pt	handler;
	void	*data;
	char	*action;
};

log_t *log_init();

#endif
